import {
  Http
} from '../utils/http.js'

class ClassicModule extends Http {
  latestClassic(callBack) {
    this.request({
      url: 'classic/latest',
      success: (res) => {
        callBack(res)
      }
    })
  }

  nextClassic(index, callBack) {
    this.request({
      url: 'classic/' + index + '/next',
      success: (res) => {
        callBack(res)
      }
    })
  }

  previousClassic(index, callBack) {
    this.request({
      url: 'classic/' + index + '/previous',
      success: (res) => {
        callBack(res)
      }
    })
  }
}

export {
  ClassicModule
}